//! 核心模块配置
//! 
//! 注意：为避免重复定义，各专门模块的配置已移至对应模块：
//! - CircuitBreakerConfig -> rustcloud-circuit-breaker
//! - RegistryConfig -> rustcloud-registry  
//! - LoadBalancerConfig -> rustcloud-loadbalancer
//! - LoggingConfig -> rustcloud-logging
//! - GatewayConfig -> rustcloud-gateway
//! - ApplicationConfig -> rustcloud-config
//!
//! 本模块仅保留最基础的服务器配置。

use serde::{Deserialize, Serialize};

/// 服务器配置（核心模块仅保留这个基础配置）
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ServerConfig {
    pub host: String,
    pub port: u16,
    pub ssl_enabled: bool,
    pub ssl_cert_path: Option<String>,
    pub ssl_key_path: Option<String>,
}

impl Default for ServerConfig {
    fn default() -> Self {
        Self {
            host: "127.0.0.1".to_string(),
            port: 8080,
            ssl_enabled: false,
            ssl_cert_path: None,
            ssl_key_path: None,
        }
    }
}